/* Padding */
.p-common {
  padding: 0 24rpx 12rpx;
}
.p-0 {
  padding: 0;
}
.p-2 {
  padding: 16rpx;
}
.p-4 {
  padding: 32rpx;
}
.p-6 {
  padding: 48rpx;
}
.p-8 {
  padding: 64rpx;
}

.px-2 {
  padding-left: 16rpx;
  padding-right: 16rpx;
}
.px-4 {
  padding-left: 32rpx;
  padding-right: 32rpx;
}
.px-6 {
  padding-left: 48rpx;
  padding-right: 48rpx;
}
.px-8 {
  padding-left: 64rpx;
  padding-right: 64rpx;
}

.py-2 {
  padding-top: 16rpx;
  padding-bottom: 16rpx;
}
.py-4 {
  padding-top: 32rpx;
  padding-bottom: 32rpx;
}
.py-6 {
  padding-top: 48rpx;
  padding-bottom: 48rpx;
}
.py-8 {
  padding-top: 64rpx;
  padding-bottom: 64rpx;
}

/* Margin */
.m-0 {
  margin: 0;
}
.m-2 {
  margin: 16rpx;
}
.m-4 {
  margin: 32rpx;
}
.m-6 {
  margin: 48rpx;
}
.m-8 {
  margin: 64rpx;
}

.mx-0 {
  margin-left: 0;
  margin-right: 0;
}
.mx-2 {
  margin-left: 16rpx;
  margin-right: 16rpx;
}
.mx-4 {
  margin-left: 32rpx;
  margin-right: 32rpx;
}
.mx-6 {
  margin-left: 48rpx;
  margin-right: 48rpx;
}
.mx-8 {
  margin-left: 64rpx;
  margin-right: 64rpx;
}

.my-0 {
  margin-top: 0;
  margin-bottom: 0;
}
.my-2 {
  margin-top: 16rpx;
  margin-bottom: 16rpx;
}
.my-4 {
  margin-top: 32rpx;
  margin-bottom: 32rpx;
}
.my-6 {
  margin-top: 48rpx;
  margin-bottom: 48rpx;
}
.my-8 {
  margin-top: 64rpx;
  margin-bottom: 64rpx;
}

/* Font size */
.text-xs {
  font-size: 24rpx;
}
.text-sm {
  font-size: 28rpx;
}
.text-base {
  font-size: 32rpx;
}
.text-lg {
  font-size: 36rpx;
}
.text-xl {
  font-size: 40rpx;
}

/* Text alignment */
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}

/* Display */
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.inline {
  display: inline;
}
.flex {
  display: flex;
}
.grid {
  display: grid;
}

/* Flexbox */
.flex-row {
  flex-direction: row;
}
.flex-col {
  flex-direction: column;
}
.items-start {
  align-items: flex-start;
}
.items-center {
  align-items: center;
}
.items-end {
  align-items: flex-end;
}
.justify-start {
  justify-content: flex-start;
}
.justify-center {
  justify-content: center;
}
.justify-end {
  justify-content: flex-end;
}
.justify-between {
  justify-content: space-between;
}

/* Background color */
.bg-white {
  background-color: #ffffff;
}
.bg-gray-100 {
  background-color: #f3f4f6;
}
.bg-gray-500 {
  background-color: #6b7280;
}
.bg-blue-500 {
  background-color: #3b82f6;
}
.bg-red-500 {
  background-color: #ef4444;
}
.bg-green-500 {
  background-color: #10b981;
}

/* Border Radius */
.rounded {
  border-radius: 8rpx;
}
.rounded-md {
  border-radius: 16rpx;
}
.rounded-lg {
  border-radius: 24rpx;
}
.rounded-full {
  border-radius: 9999rpx;
}

/* Width / Height */
.w-full {
  width: 100%;
}
.h-full {
  height: 100%;
}
.w-screen {
  width: 100vw;
}
.h-screen {
  height: 100vh;
}

/* Others */
.hidden {
  display: none;
}
.shadow {
  box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.1);
}

/* Font Weight */
.font-bold {
  font-weight: bold;
}

/* Other */
.text-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.text-ellipsis-2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
